package com.example.blew.omp.system.config;


import com.example.blew.omp.system.service.MessageContext;

public enum ReturnEnum implements MessageContext {
    /**
     * 请求成功
     */
    @Deprecated
    A0000("00000", "请求成功"),

    S000000("S000000", "请求成功"),

    E000001("E000000", "请求失败");

    private final String code;

    /**
     * 响应信息
     */
    private final String message;


    ReturnEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
